mw.loader.implement("ext.eventLogging",function(){(function(mw,$,console){'use strict';function ValidationError(message){this.message=message;}ValidationError.prototype=new Error();var self=mw.eventLog={schemas:{},warn:console&&$.isFunction(console.warn)?$.proxy(console.warn,console):mw.log,declareSchema:function(schemaName,meta){if(self.schemas.hasOwnProperty(schemaName)){self.warn('Clobbering existing "'+schemaName+'" schema');}self.schemas[schemaName]=$.extend(true,{revision:-1,schema:{properties:{}},defaults:{}},self.schemas[schemaName],meta);return self.schemas[schemaName];},isInstanceOf:function(value,type){if(value===undefined||value===null){return false;}switch(type){case'string':return typeof value==='string';case'timestamp':return value instanceof Date||(typeof value==='number'&&value>=0&&value%1===0);case'boolean':return typeof value==='boolean';case'integer':return typeof value==='number'&&value%1===0;case'number':return typeof value==='number'&&isFinite(value);default: return false;}},isValid:function(event,schemaName){try{self.assertValid(event,schemaName);return true;}catch(e){if(!(e instanceof ValidationError)){throw e;}self.warn(e.message);return false;}},assertValid:function(event,schemaName){var schema=self.schemas[schemaName]||null,props=schema.schema.properties,prop;if($.isEmpty(props)){throw new ValidationError('Unknown schema: '+schemaName);}for(prop in event){if(props[prop]===undefined){throw new ValidationError('Unrecognized property: '+prop);}}$.each(props,function(prop,desc){var val=event[prop];if(val===undefined){if(desc.required){throw new ValidationError('Missing property: '+prop);}return true;}if(!(self.isInstanceOf(val,desc.type))){throw new ValidationError('Wrong type for property: '+prop+' '+val);}if(desc['enum']&&$.inArray(val,desc['enum'])===-1){throw new ValidationError('Value "'+val+'" not in enum '+$.toJSON(desc['enum']));}});return true;},setDefaults:function(schemaName,schemaDefaults){var schema=self.schemas[schemaName];if (schema===undefined){self.warn('Setting defaults on unknown schema "'+schemaName+'"');schema=self.declareSchema(schemaName);}return $.extend(true,schema.defaults,schemaDefaults);},encapsulate:function(schemaName,event){var schema=self.schemas[schemaName];if(schema===undefined){self.warn('Got event with unknown schema "'+schemaName+'"');schema=self.declareSchema(schemaName);}event=$.extend(true,{},schema.defaults,event);return{event:event,clientValidated:self.isValid(event,schemaName),revision:schema.revision,schema:schemaName,webHost:window.location.hostname,wiki:mw.config.get('wgDBname')};},dispatch:function(data){var beacon=document.createElement('img'),baseUri=mw.config.get('wgEventLoggingBaseUri'),dfd=$.Deferred();if(!baseUri){dfd.rejectWith(data,[data]);return dfd.promise();}$(beacon).on('error',function(){dfd.resolveWith(data,[data]);});beacon.src=baseUri+'?'+encodeURIComponent($.toJSON(data))+';';return dfd.promise();},logEvent:function(schemaName,eventInstance){return self. dispatch(self.encapsulate(schemaName,eventInstance));}};self.setSchema=self.declareSchema;if(!mw.config.get('wgEventLoggingBaseUri')){self.warn('"$wgEventLoggingBaseUri" is not set.');}}(mediaWiki,jQuery,window.console));;},{},{});mw.loader.implement("ext.narayam",function(){jQuery(function($){$.narayam.addInputs('input:not([type]), input[type=text], input[type=search], textarea, div[contenteditable=true]');$.narayam.setup();});;},{},{});mw.loader.implement("ext.navigationTiming",function(){(function(mw,$){'use strict';var timing=window.performance?performance.timing:null;function inSample(){var factor=mw.config.get('wgNavigationTimingSamplingFactor');if(!$.isNumeric(factor)||factor<1){return false;}return Math.floor(Math.random()*factor)===0;}function emitTiming(){var navStart=timing.navigationStart||timing.fetchStart,event={userAgent:navigator.userAgent,isHttps:location.protocol==='https:',isAnon:mw.config.get('wgUserId')===null},page={pageId:mw.config.get('wgArticleId'),revId:mw. config.get('wgCurRevisionId'),action:mw.config.get('wgAction')};if($.isPlainObject(window.Geo)&&typeof Geo.country==='string'){event.originCountry=Geo.country;}$.each({dnsLookup:timing.domainLookupEnd-timing.domainLookupStart,connecting:timing.connectEnd-timing.connectStart,sending:timing.fetchStart-navStart,waiting:timing.responseStart-timing.requestStart,receiving:timing.responseEnd-timing.responseStart,rendering:timing.loadEventEnd-timing.responseEnd,loading:timing.loadEventStart-navStart},function(k,v){if($.isNumeric(v)&&v>0){event[k]=v;}});if(timing.redirectStart){event.redirectCount=performance.navigation.redirectCount;event.redirecting=timing.redirectEnd-timing.redirectStart;}if(page.revId){$.extend(event,page);}if(mw.mobileFrontend&&mw.config.exists('wgMFMode')){event.mobileMode=mw.config.get('wgMFMode');}mw.eventLog.logEvent('NavigationTiming',event);}if(timing&&inSample()&&!/Firefox\/[78]/.test(navigator.userAgent)){$(window).load(function(){setTimeout(emitTiming,0);});}}( mediaWiki,jQuery));;},{},{});mw.loader.implement("ext.rtlcite",function(){},{"css":["sup.reference{unicode-bidi:-moz-isolate;unicode-bidi:-webkit-isolate;unicode-bidi:isolate}\n/* cache key: mlwiki:resourceloader:filter:minify-css:7:b985a01c3aa6aa6f810b344a5599e80e */"]},{});mw.loader.implement("ext.gadget.ReferenceTooltips",function(){},{"css":[ ".referencetooltip{position:absolute;list-style:none;list-style-image:none;opacity:0;font-size:10px;margin:0;z-index:5;padding:0}.referencetooltip li{border:#080086 2px solid;max-width:260px;padding:10px 8px 13px 8px;margin:0px;background-color:#F7F7F7;box-shadow:2px 4px 2px rgba(0,0,0,0.3);-moz-box-shadow:2px 4px 2px rgba(0,0,0,0.3);-webkit-box-shadow:2px 4px 2px rgba(0,0,0,0.3)}.referencetooltip li+li{margin-left:7px;margin-top:-2px;border:0;padding:0;height:3px;width:0px;background-color:transparent;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;border-top:12px #080086 solid;border-right:7px transparent solid;border-left:7px transparent solid}.referencetooltip\u003Eli+li::after{content:'';border-top:8px #F7F7F7 solid;border-right:5px transparent solid;border-left:5px transparent solid;margin-top:-12px;margin-left:-5px;z-index:1;height:0px;width:0px;display:block}.client-js .referencetooltip li ul li{border:none;box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none;height:auto;width:auto;margin:auto;padding:0;position:static}.RTflipped{padding-top:13px}.referencetooltip.RTflipped li+li{position:absolute;top:2px;border-top:0;border-bottom:12px #080086 solid}.referencetooltip.RTflipped li+li::after{border-top:0;border-bottom:8px #F7F7F7 solid;position:absolute;margin-top:7px}.RTsettings{float:right;height:16px;width:16px;cursor:pointer;background-image:url(//upload.wikimedia.org/wikipedia/commons/e/ed/Cog.png);margin-top:-9px;margin-right:-7px;-webkit-transition:opacity 0.15s;-moz-transition:opacity 0.15s;-o-transition:opacity 0.15s;-ms-transition:opacity 0.15s;transition:opacity 0.15s;opacity:0.6;filter:alpha(opacity=60)}.RTsettings:hover{opacity:1;filter:alpha(opacity=100)}\n/* cache key: mlwiki:resourceloader:filter:minify-css:7:f043a32bb7f4917227bd98422c2a56ec */" ]},{});mw.loader.implement("ext.narayam.core",function(){(function($,mw){'use strict';$.narayam=(function(){var narayam={},$inputs=$([]),enabled=false,schemes={},availableSchemes=mw.config.get('wgNarayamAvailableSchemes',{}),allImes=mw.config.get('wgNarayamAllSchemes',{}),currentScheme,shortcutKey=getShortCutKey(),recentItemsLength=mw.config.get('wgNarayamRecentItemsLength');function isShortcutKey(e){return e.altKey===shortcutKey.altKey&&e.ctrlKey===shortcutKey.ctrlKey&&e.shiftKey===shortcutKey.shiftKey&&String.fromCharCode(e.which)===shortcutKey.key;}function getShortCutKey(){var defaultShortcut={altKey:false,ctrlKey:true,shiftKey:false,cmdKey:false,key:'M'};var profile=$.client.profile();if(!(profile.platform==='win'&&profile.name==='safari')&&(profile.name==='safari'||profile.platform==='mac'||profile.name==='konqueror')&&!(profile.name==='opera'||profile.name==='chrome')){defaultShortcut.key='G';}if(profile.name==='opera'&&profile.platform==='mac'){defaultShortcut.cmdKey=true;} return defaultShortcut;}function shortcutText(){var text='';if(shortcutKey.ctrlKey){text+='Ctrl-';}if(shortcutKey.shiftKey){text+='Shift-';}if(shortcutKey.altKey){text+='Alt-';}if(shortcutKey.cmdKey){text+='Command-';}text+=shortcutKey.key.toUpperCase();return text;}function changeVisual($element){if(enabled){$element.addClass('narayam-input');if($.narayam.osk){$.narayam.osk.bind($element,currentScheme.namemsg);}}else{$element.removeClass('narayam-input');}}function replaceString($element,startPos,endPos,peri){var text=$element.val();var pre=text.substring(0,startPos);var post=text.substring(endPos,text.length);$element.val(pre+peri+post);}function onkeydown(e){if(enabled&¤tScheme.extended_keyboard&&e.altKey&&!e.ctrlKey){e.stopPropagation();return false;}else if(isShortcutKey(e)){narayam.toggle();changeVisual($(this));e.stopPropagation();return false;}return true;}function onkeypress(e){if(!enabled){return true;}if(e.which===8){$(this).data('narayamKeyBuffer','');return true;}if( (e.which<32&&e.which!==13)||(e.altKey&&!currentScheme.extended_keyboard)||e.ctrlKey||e.metaKey){return true;}var $this=$(this);var c=String.fromCharCode(e.which);var pos=getCaretPosition(this);var startPos=pos[0];var endPos=pos[1];var input=narayam.lastNChars($this.val()||$this.text(),startPos,currentScheme.lookbackLength)+c;var keyBuffer=$this.data('narayamKeyBuffer');var replacement=narayam.transliterate(input,keyBuffer,e.altKey);keyBuffer+=c;if(keyBuffer.length>currentScheme.keyBufferLength){keyBuffer=keyBuffer.substring(keyBuffer.length-currentScheme.keyBufferLength);}$this.data('narayamKeyBuffer',keyBuffer);if(replacement===input){return true;}var divergingPos=narayam.firstDivergence(input,replacement);input=input.substring(divergingPos);replacement=replacement.substring(divergingPos);replaceText(this,replacement,startPos-input.length+1,endPos);e.stopPropagation();return false;}function getCaretPosition(element){var isDiv=(element.nodeName==='DIV');if(!isDiv){return $(element). textSelection('getCaretPosition',{startAndEnd:true});}return window.getDivCaretPos(element);}function replaceText(element,replacement,start,end){var isDiv=(element.nodeName==='DIV');var $this=$(element);if(!isDiv){$this.textSelection('encapsulateSelection',{peri:replacement,replace:true,selectPeri:false,selectionStart:start,selectionEnd:end});}else{$this.text($this.text().substr(0,start)+replacement+$this.text().substr(end,$this.text().length));window.setDivCaretPos(element,{start:start+replacement.length,end:start+replacement.length});}}function onfocus(e){if($(this).data('narayamKeyBuffer')===undefined){$(this).data('narayamKeyBuffer','');$inputs=$inputs.add($(this));$(this).on({'keydown.narayam':onkeydown,'keypress.narayam':onkeypress,'blur':onblur});}changeVisual($(this));}function onblur(e){$(this).removeClass('narayam-input');}narayam.transliterate=function(str,keyBuffer,useExtended){var rules=currentScheme.extended_keyboard&&useExtended?currentScheme.rules_x:currentScheme.rules; for(var i=0;i0&&new RegExp(rules[i][1]+'$').test(keyBuffer)))){return str.replace(regex,rules[i][2]);}}return str;};narayam.lastNChars=function(str,pos,n){if(n===0){return'';}else if(pos<=n){return str.substr(0,pos);}else{return str.substr(pos-n,n);}};narayam.firstDivergence=function(a,b){var minLength=a.length');$input.attr('id','narayam-'+scheme).val(scheme);var $narayamMenuItemLabel=$('